acts_as_state_machine needed
Reported by cbs | August 17th, 2008 @ 08:13 PM
I'm setting up my first go w/RESTful authentication, and following the INSTALL section of the README, i executed the script/generate authenticated user sessions --include-activation --stateful
whenever i run the rake db:migrate or the generate for the Role step, i get "undefined method 'acts_as_state_machine' for User(Table doesn't exist):Class"
I understand what's going on, but googling for a rails state-machine plugin gives me about a dozen offerings in the first few pages -- is there a preferred one to be used for RA? (The most robust, if identifiable as such.)
Many thanks, -cbs
Comments and changes to this ticket
-
mrflip August 18th, 2008 @ 08:46 AM
- State changed from new to resolved
- Tag changed from acts_as_state_machine, install, stateful to aasm, acts_as_state_machine, install, stateful
aasm seems to be the People's Choice -- see the notes under the --aasm flag.
if options[:aasm] puts "- Install the acts_as_state_machine gem:" puts " sudo gem sources -a http://gems.github.com (If you haven't already)" puts " sudo gem install rubyist-aasm"
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Restful Authentication Generator
This widely-used plugin provides a foundation for securely managing user
authentication:
* Login / logout
* Secure password handling
* Account activation by validating email
* Account approval / disabling by admin
* Rudimentary hooks for authorization and access control.
http://github.com/technoweenie/restful-authentication/tree